import { TableConfig } from '@/components/data-table/types'

export const tableConfig: TableConfig = {
  showToolbar: true,
  showCheckbox: false,
  showPagination: false,
  tableColumns: [
    {
      label: '名称',
      prop: 'name',
      width: 180,
      fixed: 'left'
    },
    {
      label: '权限标识',
      prop: 'permission',
      minWidth: 160
    },
    {
      label: '菜单URL',
      prop: 'url',
      minWidth: 160
    },
    {
      label: '图标',
      prop: 'icon',
      minWidth: 150
    },
    {
      label: '类型',
      prop: 'type',
      width: 92,
      slot: 'type'
    },
    {
      label: '排序',
      prop: 'sort',
      width: 60
    },
    {
      label: '状态',
      prop: 'status',
      width: 80,
      slot: 'status'
    },
    {
      label: '操作',
      minWidth: 120,
      slot: 'operation',
      fixed: 'right'
    }
  ]
}
